<div class="child_floor_show child_floor_style2"
	id="child_floor_show_${childs.id}"
	<#if childs_index<1 >style="display:block"
	<#else>style="display:none"</#if>>
	<ul>
			<li class="items-box box-li">
				<#if childs.goods_ids?? >
					<#list childs.goods_ids?keys as key>
					<#if key =="0" >
						<#assign goods_id=childs.goods_ids[key] >
						<#assign floorGoods=floorGoodsTag("{'goods_id':'${goods_id}'}") >
                            <input type="hidden" class="goods_sn" value="${floorGoods.sn}">
							<input type="button" style="display:none" value="编辑"  class="floor new_dialog btn-default-styles"
								   data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
								   data-operation-id="${goods_id}"
								   data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
								   data-title="修改楼层商品"
								   data-formId="editEachGoodsForm"
								   data-floorId="${childs.id}"
								   data-goods-index="${key}">
							<div class="goods-img">
								<a target="_blank" href="${ctx}/goods-${floorGoods.goods_id}.html" >
									<@image class="scrollLoading" src="${floorGoods.thumbnail!''}" alt="${floorGoods.name}" style="width:100%;" />
								</a>
							</div>
							<div class="goods-name">
								<a target="_blank" href="${ctx}/goods-${floorGoods.goods_id}.html"
								   title="${floorGoods.name}">${floorGoods.name}</a>
							</div>
							<div class="goods-price">
								<span>${floorGoods.price?string.currency}</span>
							</div>
					</#if>
					</#list>
					<input type="button" style="display:none" value="新增"  class="floor new_dialog btn-default-styles add"
						   data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
						   data-operation-id=""
						   data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
						   data-title="新增楼层商品"
						   data-formId="editEachGoodsForm"
						   data-floorId="${childs.id}"
						   data-goods-index="0">
				<#else>
					<input type="button" style="display:none" value="新增"  class="floor new_dialog btn-default-styles"
						   data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
						   data-operation-id=""
						   data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
						   data-title="新增楼层商品"
						   data-formId="editEachGoodsForm"
						   data-floorId="${childs.id}"
						   data-goods-index="0">
				</#if>
			</li>
			<li class="items-box box-li">
				<#if childs.goods_ids?? >
					<#list childs.goods_ids?keys as key>
					<#if key =="1" >
						<#assign goods_id=childs.goods_ids[key] >
						<#assign floorGoods=floorGoodsTag("{'goods_id':'${goods_id}'}") >
                            <#if floorGoods.name??>
                                <input type="hidden" class="goods_sn" value="${floorGoods.sn}">
                                <input type="button" style="display:none" value="编辑"
                                       class="floor new_dialog btn-default-styles"
                                       data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
                                       data-operation-id="${goods_id}"
                                       data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
                                       data-title="修改楼层商品"
                                       data-formId="editEachGoodsForm"
                                       data-floorId="${childs.id}"
                                       data-goods-index="${key}">
                                <div class="goods-img">
                                    <a target="_blank" href="${ctx}/goods-${floorGoods.goods_id}.html">
                                        <@image class="scrollLoading" src="${floorGoods.thumbnail!''}"
                                        alt="${floorGoods.name}" style="width:100%;" />
                                    </a>
                                </div>
                                <div class="goods-name">
                                    <a target="_blank" href="${ctx}/goods-${floorGoods.goods_id}.html"
                                       title="${floorGoods.name}">${floorGoods.name}</a>
                                </div>
                                <div class="goods-price">
                                    <span>${floorGoods.price?string.currency}</span>
                                </div>
                            </#if>
					</#if>
					</#list>
					<input type="button" style="display:none" value="新增"  class="floor new_dialog btn-default-styles add"
						   data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
						   data-operation-id=""
						   data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
						   data-title="新增楼层商品"
						   data-formId="editEachGoodsForm"
						   data-floorId="${childs.id}"
						   data-goods-index="1">
				<#else>
					<input type="button" style="display:none" value="新增"  class="floor new_dialog btn-default-styles"
						   data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
						   data-operation-id=""
						   data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
						   data-title="新增楼层商品"
						   data-formId="editEachGoodsForm"
						   data-floorId="${childs.id}"
						   data-goods-index="1">
				</#if>
			</li>
			<li class="items-box box-li">
				<#if childs.goods_ids?? >
					<#list childs.goods_ids?keys as key>
					<#if key =="2" >
						<#assign goods_id=childs.goods_ids[key] >
						<#assign floorGoods=floorGoodsTag("{'goods_id':'${goods_id}'}") >
                            <#if floorGoods.name??>
                                <input type="hidden" class="goods_sn" value="${floorGoods.sn}">
                                <input type="button" style="display:none" value="编辑"
                                       class="floor new_dialog btn-default-styles"
                                       data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
                                       data-operation-id="${goods_id}"
                                       data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
                                       data-title="修改楼层商品"
                                       data-formId="editEachGoodsForm"
                                       data-floorId="${childs.id}"
                                       data-goods-index="${key}">
                                <div class="goods-img">
                                    <a target="_blank" href="${ctx}/goods-${floorGoods.goods_id}.html">
                                        <@image class="scrollLoading" src="${floorGoods.thumbnail!''}"
                                        alt="${floorGoods.name}" style="width:100%;" />
                                    </a>
                                </div>
                                <div class="goods-name">
                                    <a target="_blank" href="${ctx}/goods-${floorGoods.goods_id}.html"
                                       title="${floorGoods.name}">${floorGoods.name}</a>
                                </div>
                                <div class="goods-price">
                                    <span>${floorGoods.price?string.currency}</span>
                                </div>
                            </#if>
                    </#if>
					</#list>
					<input type="button" style="display:none" value="新增"  class="floor new_dialog btn-default-styles add"
						   data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
						   data-operation-id=""
						   data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
						   data-title="新增楼层商品"
						   data-formId="editEachGoodsForm"
						   data-floorId="${childs.id}"
						   data-goods-index="2">
				<#else>
					<input type="button" style="display:none" value="新增"  class="floor new_dialog btn-default-styles"
						   data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
						   data-operation-id=""
						   data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
						   data-title="新增楼层商品"
						   data-formId="editEachGoodsForm"
						   data-floorId="${childs.id}"
						   data-goods-index="2">
				</#if>
			</li>
			<li class="items-box box-li">
				<#if childs.goods_ids?? >
					<#list childs.goods_ids?keys as key>
					<#if key =="3" >
						<#assign goods_id=childs.goods_ids[key] >
						<#assign floorGoods=floorGoodsTag("{'goods_id':'${goods_id}'}") >
                            <#if floorGoods.name??>
                                <input type="hidden" class="goods_sn" value="${floorGoods.sn}">
                                <input type="button" style="display:none" value="编辑"
                                       class="floor new_dialog btn-default-styles"
                                       data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
                                       data-operation-id="${goods_id}"
                                       data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
                                       data-title="修改楼层商品"
                                       data-formId="editEachGoodsForm"
                                       data-floorId="${childs.id}"
                                       data-goods-index="${key}">
                                <div class="goods-img">
                                    <a target="_blank" href="${ctx}/goods-${floorGoods.goods_id}.html">
                                        <@image class="scrollLoading" src="${floorGoods.thumbnail!''}"
                                        alt="${floorGoods.name}" style="width:100%;" />
                                    </a>
                                </div>
                                <div class="goods-name">
                                    <a target="_blank" href="${ctx}/goods-${floorGoods.goods_id}.html"
                                       title="${floorGoods.name}">${floorGoods.name}</a>
                                </div>
                                <div class="goods-price">
                                    <span>${floorGoods.price?string.currency}</span>
                                </div>
                            </#if>
                    </#if>
					</#list>
					<input type="button" style="display:none" value="新增"  class="floor new_dialog btn-default-styles add"
						   data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
						   data-operation-id=""
						   data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
						   data-title="新增楼层商品"
						   data-formId="editEachGoodsForm"
						   data-floorId="${childs.id}"
						   data-goods-index="3">
				<#else>
					<input type="button" style="display:none" value="新增"  class="floor new_dialog btn-default-styles"
						   data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
						   data-operation-id=""
						   data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
						   data-title="新增楼层商品"
						   data-formId="editEachGoodsForm"
						   data-floorId="${childs.id}"
						   data-goods-index="3">
				</#if>
			</li>
			<li class="items-box box-li">
				<#if childs.goods_ids?? >
					<#list childs.goods_ids?keys as key>
					<#if key =="4" >
						<#assign goods_id=childs.goods_ids[key] >
						<#assign floorGoods=floorGoodsTag("{'goods_id':'${goods_id}'}") >
                            <#if floorGoods.name??>
                                <input type="hidden" class="goods_sn" value="${floorGoods.sn}">
                                <input type="button" style="display:none" value="编辑"
                                       class="floor new_dialog btn-default-styles"
                                       data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
                                       data-operation-id="${goods_id}"
                                       data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
                                       data-title="修改楼层商品"
                                       data-formId="editEachGoodsForm"
                                       data-floorId="${childs.id}"
                                       data-goods-index="${key}">
                                <div class="goods-img">
                                    <a target="_blank" href="${ctx}/goods-${floorGoods.goods_id}.html">
                                        <@image class="scrollLoading" src="${floorGoods.thumbnail!''}"
                                        alt="${floorGoods.name}" style="width:100%;" />
                                    </a>
                                </div>
                                <div class="goods-name">
                                    <a target="_blank" href="${ctx}/goods-${floorGoods.goods_id}.html"
                                       title="${floorGoods.name}">${floorGoods.name}</a>
                                </div>
                                <div class="goods-price">
                                    <span>${floorGoods.price?string.currency}</span>
                                </div>
                            </#if>
                    </#if>
					</#list>
					<input type="button" style="display:none" value="新增"  class="floor new_dialog btn-default-styles add"
						   data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
						   data-operation-id=""
						   data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
						   data-title="新增楼层商品"
						   data-formId="editEachGoodsForm"
						   data-floorId="${childs.id}"
						   data-goods-index="4">
				<#else>
					<input type="button" style="display:none" value="新增"  class="floor new_dialog btn-default-styles"
						   data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
						   data-operation-id=""
						   data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
						   data-title="新增楼层商品"
						   data-formId="editEachGoodsForm"
						   data-floorId="${childs.id}"
						   data-goods-index="4">
				</#if>
			</li>
			<li class="items-box box-li">
				<#if childs.goods_ids?? >
					<#list childs.goods_ids?keys as key>
					<#if key =="5" >
						<#assign goods_id=childs.goods_ids[key] >
						<#assign floorGoods=floorGoodsTag("{'goods_id':'${goods_id}'}") >
                            <#if floorGoods.name??>
                                <input type="hidden" class="goods_sn" value="${floorGoods.sn}">
                                <input type="button" style="display:none" value="编辑"
                                       class="floor new_dialog btn-default-styles"
                                       data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
                                       data-operation-id="${goods_id}"
                                       data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
                                       data-title="修改楼层商品"
                                       data-formId="editEachGoodsForm"
                                       data-floorId="${childs.id}"
                                       data-goods-index="${key}">
                                <div class="goods-img">
                                    <a target="_blank" href="${ctx}/goods-${floorGoods.goods_id}.html">
                                        <@image class="scrollLoading" src="${floorGoods.thumbnail!''}"
                                        alt="${floorGoods.name}" style="width:100%;" />
                                    </a>
                                </div>
                                <div class="goods-name">
                                    <a target="_blank" href="${ctx}/goods-${floorGoods.goods_id}.html"
                                       title="${floorGoods.name}">${floorGoods.name}</a>
                                </div>
                                <div class="goods-price">
                                    <span>${floorGoods.price?string.currency}</span>
                                </div>
                            </#if>
                    </#if>
					</#list>
					<input type="button" style="display:none" value="新增"  class="floor new_dialog btn-default-styles add"
						   data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
						   data-operation-id=""
						   data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
						   data-title="新增楼层商品"
						   data-formId="editEachGoodsForm"
						   data-floorId="${childs.id}"
						   data-goods-index="5">
				<#else>
					<input type="button" style="display:none" value="新增"  class="floor new_dialog btn-default-styles"
						   data-operation-url="${ctx}/core/admin/template/edit-each-goods.do"
						   data-operation-id=""
						   data-save-url="${ctx}/core/admin/template/save-each-goods.do?ajax=yes"
						   data-title="新增楼层商品"
						   data-formId="editEachGoodsForm"
						   data-floorId="${childs.id}"
						   data-goods-index="5">
				</#if>
			</li>
		</ul>
		<script type="text/javascript">
			$(function () {
                var li = $('.box-li');
                for (var i = 0; i < li.length; i++) {
                    if (li.eq(i).find('div').length === 0) {
                        li.eq(i).find('.add').show();
                    } else {
                        li.eq(i).find('.add').remove();
                    }
                }
                $('.child_floor_show').each(function () {
                    $(this).find("input[type='button']").remove();
                })
            })
		</script>
</div>